﻿using System.Collections.Generic;

namespace AbpOne.ToolKits.Base.Paged {
    public class ListResult<T> : IListResult<T> {
        IReadOnlyList<T> _items;

        public IReadOnlyList<T> Items {
            get => _items ??= new List<T>();
            set => _items = value;
        }

        public ListResult() {
        }

        public ListResult(IReadOnlyList<T> item) {
            Items = item;
        }
    }
}